package com.zhongkun.datahome.service.res.room;

import com.zhongkun.datahome.service.domain.MaterialRoom;
import lombok.Data;

/**
 * @Author: lifengsheng
 * @Date: 2025/4/23 11:02
 * @Desc
 */
@Data
public class MaterialRoomVo extends MaterialRoom {
    public static MaterialRoomVo of(MaterialRoom materialRoom) {
        MaterialRoomVo vo = new MaterialRoomVo();
        vo.setId(materialRoom.getId());
        vo.setRelationId(materialRoom.getRelationId());
        vo.setRelationType(materialRoom.getRelationType());
        vo.setRoomCode(materialRoom.getRoomCode());
        vo.setRoomName(materialRoom.getRoomName());
        return vo;
    }
}
